package stock.entity;

import java.time.Instant;

public class PriceQuote {
    /**
     * 最新成交价
     */
    private Money lastPrice;
    /**
     * 今开价
     */
    private Money open;
    /**
     * 当日最高价
     */
    private Money high;
    /**
     * 当日最低价
     */
    private Money low;
    /**
     * 前收盘价
     */
    private Money prevClose;
    /**
     * 成交量（股数）
     */
    private long volume;
    /**
     * 行情时间戳（行情产生时间）
     */
    private Instant ts;

    public PriceQuote() {
    }

    public PriceQuote(Money lastPrice, Money open, Money high, Money low,
                      Money prevClose, long volume, Instant ts) {
        this.lastPrice = lastPrice;
        this.open = open;
        this.high = high;
        this.low = low;
        this.prevClose = prevClose;
        this.volume = volume;
        this.ts = ts;
    }

    public Money getLastPrice() {
        return lastPrice;
    }

    public void setLastPrice(Money lastPrice) {
        this.lastPrice = lastPrice;
    }

    public Money getOpen() {
        return open;
    }

    public void setOpen(Money open) {
        this.open = open;
    }

    public Money getHigh() {
        return high;
    }

    public void setHigh(Money high) {
        this.high = high;
    }

    public Money getLow() {
        return low;
    }

    public void setLow(Money low) {
        this.low = low;
    }

    public Money getPrevClose() {
        return prevClose;
    }

    public void setPrevClose(Money prevClose) {
        this.prevClose = prevClose;
    }

    public long getVolume() {
        return volume;
    }

    public void setVolume(long volume) {
        this.volume = volume;
    }

    public Instant getTs() {
        return ts;
    }

    public void setTs(Instant ts) {
        this.ts = ts;
    }
}